<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>导航</title>
    <link href="bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <ul class="nav nav-tabs" id="mytab">
        <li role="presentation" class="active"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
    </ul>
    <br/>
    <br/>
    <!--胶囊标签-->
    <ul class="nav nav-tabs nav-pills" id="mytab1">
        <li role="presentation" class="active"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
    </ul>
    <br/>
    <br/>
    <!--方向-->
    <ul class="nav nav-pills nav-stacked" id="mytab1">
        <li role="presentation" class="active"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
    </ul>
    <br/>
    <br/>
    <!--两端对齐-->
    <ul class="nav nav-pills nav-justified" id="mytab1">
        <li role="presentation" class="active"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
    </ul>
    <!--是否禁用-->
    <br/>
    <br/>
    <ul class="nav nav-pills" id="mytab1">
        <li role="presentation" class="active"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation" class="disabled"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
    </ul>
    <br/>
    <br/>
    <!--下拉菜单-->
    <ul class="nav nav-pills" id="mytab2">
        <li role="presentation" class="active"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#">Home</a></li>
        <li role="presentation"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
        下拉菜单
            <span class="caret"></span>
        </a>
            <ul class="dropdown-menu" role="menu">
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
            </ul>
        </li>
    </ul>
    <script src="jquery-1.11.1.js"></script>
    <script src="bootstrap.min.js"></script>
    <script>
        $("#mytab a").click(function(){
            $(this).tab("show");
        })
        $("#mytab1 a").click(function(){
            $(this).tab("show");
        })
        $("#mytab2 a").click(function(){
            $(this).tab("show");
        })
    </script>
</body>
</html>